import mpay.PaymentController

class UrlMappings {

    static excludes = ["/images/*", "/css/*", "/js/*"]

    static mappings = {
        "/payment/$from?/$msg?" {
            controller = "payment"
            action = "payrequest"
            constraints {
//                from(matches: /\d{10}/)
//                price(matches: /\d+/)
//                to(matches: /\d{10}/)
            }
        }

        "/$controller/$list/$merchant?/$date?" {
            controller = "payment"
            action = "listpayment"
        }

        "/$controller/$action?/$id?" {
            constraints {
                // apply constraints here
            }
        }

        "/" {
            controller = "registration"
            action = "create"
        }
//		"/"(view:"/index")
        "500"(view: '/error')
    }
}
